<?php
namespace app\index\controller;
use app\index\controller\Base;
use think\Session;
class Fans extends Base{
// 粉丝
    public function index(){
        // return $this->fetch('personal');
    	if(!Session::get('username')){
    		$this->success('请先登陆！','Reg/index');
    	}else{
    		$username=Session::get('username');
    		$info=db('user')->where('username',$username)->select();
	    	$this->assign('info',$info);
			return $this->fetch('personal/fans');			
        }
    }
}